/**
* author: zhanghuan
* created: 2020/08/11
* describe: 代理配置
*/
const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(createProxyMiddleware('/api', {
      target: 'https://huiyan.baidu.com',
      secure: false,
      changeOrigin: true,
      pathRewrite: {
        "^/api": ""
      }
    }))
}